index=0
# while循环
list1=[1,2,3,4,5,6,7,8,9]
while index<len(list1):
    print(list1[index])
    index+=1
# for循环
list2=[1,2,3,4,5,6,7,8,9]
for index2 in list2:
    print(index2)
